<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="layout" content="wechat"/>
    <title>免费评房</title>
</head>

<body>
<header class="create-header">
        <ul class="creat-flowList flex-box">
            <li data-id="01" class="flex1 active">
                <span></span>

                <h3>小区信息</h3>
            </li>
            <li data-id="02" class="flex1 active">
                <span></span>

                <h3>房产信息</h3>
            </li>
            <li data-id="03" class="flex1 active">
                <span></span>

                <h3>极速询值</h3>
            </li>
        </ul>
</header>

<form resource="${this.leads}">
    <div class="bgcWhite asset-valuation">
        <div class="valuation-info">
            <g:if test="${this.params.status == "Completed"}">
                <h3>
                    <span>押品评估单价：</span>
                    <span style="color: #CD001A"><g:formatNumber number="${this.leads?.unitPrice}" type="number" maxFractionDigits="2" /></span>

                    <span>元&nbsp;/&nbsp;平米</span>
                </h3>

                <h3>
                    <span>押品评估总价：</span>
                    <span style="color: #CD001A"><g:formatNumber number="${this.leads?.loanAmount/10000}" type="number" maxFractionDigits="4" /></span>
                    <span>万元</span>
                </h3>
                <h3 class="text-center">
                  <span>您在我行最高可贷金额:</span>
                    <span class="text-center" style="color: #CD001A">¥<span style="color: #CD001A"><g:formatNumber number="${this.leads?.loanAmount/10000*0.7}" type="number" maxFractionDigits="0" /></span>万</span>
                </h3>

            </g:if>
            <g:if test="${this.params.status == "Failed"}">
                <h3>
                    <span>押品评估单价：</span>
                    <span style="color: #CD001A">待确认</span>
                    <span>元&nbsp;/&nbsp;m<sup>2</sup></span>
                </h3>

                <h3>
                    <span>押品评估总价：</span>
                    <span style="color: #CD001A">待确认</span>
                    <span>元</span>
                </h3>
            </g:if>
            <g:if test="${this.params.status == "Pending"}">
                <h3>
                    <span>参考评估单价：</span>
                    <span style="color: #CD001A">${String.valueOf(this.leads?.unitPrice).substring(0, String.valueOf(this.leads?.unitPrice).lastIndexOf("."))}</span>
                    <span>元&nbsp;/&nbsp;m<sup>2</sup></span>
                </h3>

                <h3>
                    <span>参考评估总价：</span>
                    <span style="color: #CD001A">${String.valueOf(this.leads?.loanAmount).substring(0, String.valueOf(this.leads?.loanAmount).lastIndexOf("."))}</span>
                    <span>元</span>
                </h3>
            </g:if>
        </div>

        <div class="bigBtn">
            <!-- <a href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx759dbfa790cfd63b&redirect_uri=http%3A%2F%2Flms.cindata.cn%2Fcontact%2FwxRegister&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect"
               class="linkBtn weui-btn weui-btn_plain_default">立即注册，报单有礼！</a> -->
           <a href="/leads/wxCreate3Step1?id=${this.leads?.id}"
                  class="linkBtn weui-btn weui-btn_plain_default">申请贷款</a>
        </div>

        <div class="bigBtn" style="margin-bottom: 0;">
            <!-- <a href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx759dbfa790cfd63b&redirect_uri=http%3A%2F%2Flms.cindata.cn%2Fleads%2FwxCreate2Step1&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect"
               class="linkBtn2 weui-btn weui-btn_plain_default">评估新押品</a> -->
           <a href="/leads/wxCreate2Step1"
              class="linkBtn2 weui-btn weui-btn_plain_default">评估新押品</a>
        </div>
    </div>
</form>



<script>
    $(".linkBtn").click(function () {
        $(this).addClass("active");
    });
    $(".linkBtn2").click(function () {
        $(this).addClass("active");
    });
</script>

</body>
</html>
